﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Designer.Views
{
    public class PublishDataSourceToServerModel : INotifyPropertyChanged
    {
        public string Name
        {
            get;
            set;
        }

        public string RTVersion
        {
            get;set;
        }
        public string PublishedVersion
        {
            get;set;
        }
        public string PublishedTime
        {
            get;set;
        }
        private bool _isChecked;
        public bool IsChecked
        {
            get
            {
                return _isChecked;
            }
            set
            {
                _isChecked = value;
                NotifyPropertyChanged();
            }
        }
        public object Tag
        {
            get;set;
        }

        public event PropertyChangedEventHandler PropertyChanged;

        public void NotifyPropertyChanged([System.Runtime.CompilerServices.CallerMemberName]string propertyName = "")
        {
            if(PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
